<?php

use Phinx\Migration\AbstractMigration;

class AddUserCertIdInUserTable extends AbstractMigration
{
    public function up()
    {
        $this
            ->table("user")
            ->addColumn("user_cert_id", "integer", [
                "limit" => 10,
                'signed' => false,
                'default' => 0,
                'null' => false,
                'comment' => '用户资格证id'
            ])
            ->save();
    }

    public function down()
    {
        $this->table("user")->removeColumn("user_cert_id")->save();
    }
}
